package com.hui.demo.service.impl;

import com.hui.demo.model.UserRoleRel;
import com.hui.demo.repository.UserRoleRelRepository;
import com.hui.demo.service.UserRoleRelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户角色关联service实现类
 * @author ziv
 * @date 2019-01-07
 */
@Service
public class UserRoleRelServiceImpl implements UserRoleRelService {

    @Resource
    private UserRoleRelRepository userRoleRelRepository;

    @Override
    public List<UserRoleRel> findByUserId(String userID) {
        return userRoleRelRepository.findByUserId(userID);
    }
}
